// Javascrips document
function OnSubmitForm(url) {
    document.appForm.action = url;
	document.appForm.submit();
	return true;
}

var checked=false;
function checkedAll() {
    var theForm = document.appForm;
	if(checked == false) {
	    checked = true;
	}else{
	    checked = false;
	}
	
	for(var i = 0; i < theForm.elements.length; i++) {
	    if(theForm.elements[i].name == 'cid[]') {
		    theForm.elements[i].checked = checked;
		}
	}
}